{include file="public/header" /}
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <!-- Panel Other -->
    <div class="ibox float-e-margins">
        <div class="ibox-title">
            <h5>上赛季历史排行记录</h5>
        </div>
        <div class="ibox-content">
             <!--搜索框开始-->
            <div class="row">
                <div class="col-sm-12">                                             
                    <form name="admin_list_sea" class="form-search" method="post" action="{:url('index')}">               
                        <div class="col-sm-3">
                            <div class="input-group">
                                 <select class="form-control m-b chosen-select" name="activity_id">
                                    <option value="0">选择活动</option>
                                    {foreach name="activity" id="v" key="k"}
                                        <option value="{$v.id}" {if condition="$v.id eq $activity_id"}selected{/if}>{$v.title}</option>
                                    {/foreach}
                                </select>
                                <span class="input-group-btn"> 
                                    <button type="submit" class="btn btn-primary"><i class="fa fa-search"></i> 搜索</button> 
                                </span>
                            </div>
                        </div>
                    </form>                         
                </div>
            </div>
            <!--搜索框结束-->
            <div class="hr-line-dashed"></div>

            <div class="example-wrap">
                <div class="example">
                    <table class="table table-bordered table-hover">
                        <thead>
                            <tr class="long-tr">
                                <th>ID</th>
                                <th width="10%">活动名称</th>
                                <th width="10%">用户名称</th>
                                <th width="15%">段位名称</th>
                                <th>总场数</th>
                                <th width="15%">胜利场数</th>
                                <th width="15%">当前段位星数</th>
                                <th width="15%">创建时间</th>
                            </tr>
                        </thead>
                        <tbody id="article_list">
                            {foreach name="lists" item="vo"}
                                <tr class="long-td">
                                    <td>{$vo.id}</td>
                                    <td>{$vo.title}</td>
                                    <td>{$vo.display_name}</td>          
                                    <td>{$vo.grad_name}</td>
                                    <td>{$vo.count_changshu}</td>    
                                    <td>{$vo.count_wins}</td>    
                                    <td>{$vo.curr_grad_start}</td>    
                                    <td>{$vo.create_time|date="Y-m-d H:i:s",###}</td>
                                </tr>
                            {/foreach}
                        </tbody>
                    </table>
                </div>
                <!-- 分页 -->
                <div id="Pages">  {$page} </div>
            </div>
        </div>
    </div>
</div>
<!-- End Panel Other -->
</div>
{include file="public/footer" /}
<script type="text/javascript">
    
    $('#data_5 .input-daterange').datepicker({
        keyboardNavigation: false,
        forceParse: false,
        autoclose: true
    });
</script>
</body>
</html>